package model

// CourseSelection 选课模型
type CourseSelection struct {
	Base
	StudentID uint    `json:"student_id"`
	Student   Student `gorm:"foreignKey:StudentID" json:"student,omitempty"`
	CourseID  uint    `json:"course_id"`
	Course    Course  `gorm:"foreignKey:CourseID" json:"course,omitempty"`
	Status    string  `gorm:"size:20;not null;default:'selected'" json:"status"` // 选课状态：selected, dropped
}